package cn.yh.hibernate;

import java.util.HashSet;
import java.util.Set;

/**
 * Privinces entity. @author MyEclipse Persistence Tools
 */

public class Privinces implements java.io.Serializable {

	// Fields

	private Long pid;
	private String pnameCn;
	private String pnameEn;
	private String pdetiale;
	private Set cities = new HashSet(0);

	// Constructors

	/** default constructor */
	public Privinces() {
	}

	/** minimal constructor */
	public Privinces(Long pid, String pnameCn) {
		this.pid = pid;
		this.pnameCn = pnameCn;
	}

	/** full constructor */
	public Privinces(Long pid, String pnameCn, String pnameEn, String pdetiale,
			Set cities) {
		this.pid = pid;
		this.pnameCn = pnameCn;
		this.pnameEn = pnameEn;
		this.pdetiale = pdetiale;
		this.cities = cities;
	}

	// Property accessors

	public Long getPid() {
		return this.pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getPnameCn() {
		return this.pnameCn;
	}

	public void setPnameCn(String pnameCn) {
		this.pnameCn = pnameCn;
	}

	public String getPnameEn() {
		return this.pnameEn;
	}

	public void setPnameEn(String pnameEn) {
		this.pnameEn = pnameEn;
	}

	public String getPdetiale() {
		return this.pdetiale;
	}

	public void setPdetiale(String pdetiale) {
		this.pdetiale = pdetiale;
	}

	public Set getCities() {
		return this.cities;
	}

	public void setCities(Set cities) {
		this.cities = cities;
	}

}